package com.test.designPattern.ch2;

import com.test.designPattern.ch2.color.Color;
import com.test.designPattern.ch2.shape.*;

public class ShapeFactory extends AbstractFactory {
    @Override
    Shape getShape(String shape) {
        if("rectangle".equalsIgnoreCase(shape)){
            return new Rectangle();
        } else if("circle".equalsIgnoreCase(shape)){
            return new Circle();
        } else if("square".equalsIgnoreCase(shape)){
            return new Square();
        }
        return null;
    }

    @Override
    Color getColor(String color) {
        return null;
    }
}
